package com.hjq.demo.ui.adapter

import android.os.Build
import android.os.Bundle
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.annotation.RequiresApi
import androidx.viewbinding.ViewBinding
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.dylanc.viewbinding.inflateBindingWithGeneric
import com.dylanc.viewbinding.newBindingViewHolder
import com.hjq.demo.databinding.CopyItemBinding


/**
 * 检索适配器
 */
class TestAdapter : BaseBindingAdapter<String, CopyItemBinding>(),
        LoadMoreModule {
    override fun createViewBinding(inflater: LayoutInflater, parent: ViewGroup): CopyItemBinding {
        return CopyItemBinding.inflate(inflater, parent, false)
    }

    override fun convert(holder: VBViewHolder<CopyItemBinding>, item: String) {
        holder.vb.tvCopyItem.setText("我是vb")
    }


}
